﻿#region
using System;
using System.Collections.Generic;
using Nonsul.Biz;
using Nonsul.CoreModule;
using Nonsul.Data;

#endregion

namespace %Namespace%
{
    public partial class %Entity%ListForm : EntityListForm
    {
        public %Entity%ListForm()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (DesignMode || RunTimeChecker.IsRunTime == false)
                return;

            uscSearch.RaiseSearch();
        }

        #region overriden properties
        protected override List<EntityListControl> EntityListControls
        {
            get { return new List<EntityListControl> {uscList}; }
        }
        #endregion

        #region overriden methods
        #endregion

        #region event handlers
        private void uscSearch_Searched(object sender, %Entity%SearchControl.SearchedEventArgs e)
        {
            // uscList.SetDataSource(BizRepository.%Entity%.Search(e.Keyword));
        }
        #endregion
    }
}